package com.crr.mapper;

import com.crr.api.bean.StockDto;
import com.crr.bean.SpuExtension;
import com.crr.crud.MyBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SpuExtensionMapper extends MyBaseMapper<SpuExtension> {
    /**
     * 更新库存
     * @param spu_id
     * @param total
     * @return
     */
    int updateStock(@Param("spu_id") int spu_id, @Param("total") int total);
}
